.class public Lcom/brixd/niceapp/community/activity/AuthActivity;
.super Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;
.source "AuthActivity.java"


# static fields
.field public static final RESULT_CODE_APPLY_DONE:I = 0x14

.field public static final RESULT_CODE_AUTH_DONE:I = 0xa


# instance fields
.field private mApplyBtn:Landroid/widget/Button;

.field private mAuthCodeEdt:Landroid/widget/EditText;

.field private mRequest:Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

.field private mSendBtn:Landroid/widget/Button;


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 31
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;-><init>()V

    return-void
.end method

.method static synthetic access$000(Lcom/brixd/niceapp/community/activity/AuthActivity;)Landroid/content/Context;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/AuthActivity;

    .prologue
    .line 31
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/activity/AuthActivity;->getContext()Landroid/content/Context;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$100(Lcom/brixd/niceapp/community/activity/AuthActivity;)Landroid/widget/EditText;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/AuthActivity;

    .prologue
    .line 31
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/AuthActivity;->mAuthCodeEdt:Landroid/widget/EditText;

    return-object v0
.end method

.method static synthetic access$200(Lcom/brixd/niceapp/community/activity/AuthActivity;)Landroid/content/Context;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/AuthActivity;

    .prologue
    .line 31
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/activity/AuthActivity;->getContext()Landroid/content/Context;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$300(Lcom/brixd/niceapp/community/activity/AuthActivity;)Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/activity/AuthActivity;

    .prologue
    .line 31
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/AuthActivity;->mRequest:Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    return-object v0
.end method

.method private initWidgets()V
    .registers 2

    .prologue
    .line 67
    const v0, 0x7f0a0063

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/AuthActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/brixd/niceapp/community/activity/AuthActivity;->mAuthCodeEdt:Landroid/widget/EditText;

    .line 68
    const v0, 0x7f0a0064

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/AuthActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/brixd/niceapp/community/activity/AuthActivity;->mSendBtn:Landroid/widget/Button;

    .line 69
    const v0, 0x7f0a0066

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/AuthActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/brixd/niceapp/community/activity/AuthActivity;->mApplyBtn:Landroid/widget/Button;

    .line 71
    const v0, 0x7f0c002f

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/AuthActivity;->setTopTitle(I)V

    .line 72
    const/4 v0, 0x4

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/AuthActivity;->setCommitBtnVisibility(I)V

    .line 73
    const v0, 0x7f0c0049

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/AuthActivity;->setBackText(I)V

    .line 74
    return-void
.end method

.method private initWidgetsActions()V
    .registers 3

    .prologue
    .line 77
    new-instance v0, Lcom/brixd/niceapp/community/activity/AuthActivity$1;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/community/activity/AuthActivity$1;-><init>(Lcom/brixd/niceapp/community/activity/AuthActivity;)V

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/AuthActivity;->setOnBackClickListener(Landroid/view/View$OnClickListener;)V

    .line 85
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/AuthActivity;->mApplyBtn:Landroid/widget/Button;

    new-instance v1, Lcom/brixd/niceapp/community/activity/AuthActivity$2;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/community/activity/AuthActivity$2;-><init>(Lcom/brixd/niceapp/community/activity/AuthActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 94
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/AuthActivity;->mSendBtn:Landroid/widget/Button;

    new-instance v1, Lcom/brixd/niceapp/community/activity/AuthActivity$3;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/community/activity/AuthActivity$3;-><init>(Lcom/brixd/niceapp/community/activity/AuthActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 152
    return-void
.end method


# virtual methods
.method public onActivityResult(IILandroid/content/Intent;)V
    .registers 6
    .param p1, "requestCode"    # I
    .param p2, "resultCode"    # I
    .param p3, "data"    # Landroid/content/Intent;

    .prologue
    const/4 v1, 0x0

    .line 156
    invoke-super {p0, p1, p2, p3}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onActivityResult(IILandroid/content/Intent;)V

    .line 157
    const/16 v0, 0x14

    if-ne p2, v0, :cond_e

    .line 158
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/activity/AuthActivity;->finish()V

    .line 159
    invoke-virtual {p0, v1, v1}, Lcom/brixd/niceapp/community/activity/AuthActivity;->overridePendingTransition(II)V

    .line 161
    :cond_e
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .registers 4
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 58
    invoke-super {p0, p1}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onCreate(Landroid/os/Bundle;)V

    .line 59
    const v0, 0x7f03000c

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/AuthActivity;->setContentView(I)V

    .line 60
    invoke-static {p0}, Lcom/brixd/niceapp/service/adapter/ReqRestAdapter;->niceAppAdapter(Landroid/content/Context;)Lretrofit/RestAdapter;

    move-result-object v0

    const-class v1, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    invoke-virtual {v0, v1}, Lretrofit/RestAdapter;->create(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    iput-object v0, p0, Lcom/brixd/niceapp/community/activity/AuthActivity;->mRequest:Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    .line 62
    invoke-direct {p0}, Lcom/brixd/niceapp/community/activity/AuthActivity;->initWidgets()V

    .line 63
    invoke-direct {p0}, Lcom/brixd/niceapp/community/activity/AuthActivity;->initWidgetsActions()V

    .line 64
    return-void
.end method

.method protected onPause()V
    .registers 2

    .prologue
    .line 50
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onPause()V

    .line 52
    const-string v0, "AuthActivity"

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageEnd(Ljava/lang/String;)V

    .line 53
    invoke-static {p0}, Lcom/umeng/analytics/MobclickAgent;->onPause(Landroid/content/Context;)V

    .line 54
    return-void
.end method

.method protected onResume()V
    .registers 2

    .prologue
    .line 42
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onResume()V

    .line 44
    const-string v0, "AuthActivity"

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageStart(Ljava/lang/String;)V

    .line 45
    invoke-static {p0}, Lcom/umeng/analytics/MobclickAgent;->onResume(Landroid/content/Context;)V

    .line 46
    return-void
.end method
